<div class="row">
  <div class="col-lg-4">
  </div>
  <div class="col-lg-4">
    <div class="card">
      <div class="card-body">
        <div class="iphone-header">
          <%= image_tag("iphone_header.png") %>
        </div>
        <div class="iphone-body">
          <% @spu.spu_details.each do |spu_detail| %>
            <%= link_to shop_spu_spu_detail_path(@spu, spu_detail), method: :delete, data: {confirm: "确定删除该图片吗?"} do %>
              <%= image_tag(spu_detail.image.url) %>
            <% end %>
          <% end %>
          <%= form_for [:shop, @spu, SpuDetail.new] do |f| %>
            <%= f.file_field :image, id: "spu_detail_file", style: "display:none;", onchange: "this.form.submit();" %>
          <% end %>
          <a onclick="$('input[id=spu_detail_file]').click();" >
            <div class="dropzone">
              点击此区域，选择图片。
            </div>
          </a>
        </div>
        <div class="iphone-iphone_bottom">
          <%= image_tag("iphone_bottom.png") %>
        </div>
      </div>
    </div>
  </div>
  <div class="col-lg-4">
  </div>
</div>